package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.model.KnowledgeBase;
import com.stylefeng.guns.modular.system.dao.KnowledgeBaseMapper;
import com.stylefeng.guns.modular.system.service.IKnowledgeBaseService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.validation.constraints.Null;

/**
 * <p>
 * 提问知识库 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2019-10-07
 */
@Service
public class KnowledgeBaseServiceImpl extends ServiceImpl<KnowledgeBaseMapper, KnowledgeBase> implements IKnowledgeBaseService {

    @Resource
    private  KnowledgeBaseMapper knowledgeBaseMapper;

    @Override
    public Object searchAll() {
        return knowledgeBaseMapper.selectList(null);
    }
}
